/*
 * @Author: cl
 * @Description: 用户相关
 * @Date: 2023-04-21 10:28:53
 * @LastEditTime: 2023-05-22 10:01:37
 * @FilePath: \vue3\src\api\moudules\user.js
 * @LastEditors: cl
 */
import axios from "axios";
axios.defaults.baseURL = "http://localhost:4000/api";
// axios.defaults.baseURL = "http://10.18.5.38:4000/api";


export const login = (data) =>
  axios.post("/user/login", data).then((res) => res.data);
export const register = (data) =>
  axios.post("/user/register", data).then((res) => res.data);
